<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    // 创建集合，往集合中添加元素
    List<String> list = new ArrayList<>();
    list.add("C");
    list.add("C++");
    list.add("Java");
    list.add("Python");
    list.add("C#");
    list.add(".net");

    // 绑定集合对象到请求域中
    request.setAttribute("pageInfo", list);
    // 转发给demo08.jsp处理
    request.getRequestDispatcher("/jsp/demo08.jsp").forward(request, response);

%>

</body>
</html>
